


import {axios,get,post,patch,Delete} from "./request"

export const ajax = {
    gettest:()=>get("/api/test"),
    getcommentlist:()=>get("/api/comment-list"),
    addcomment:(body)=>post("/api/comment-add",body),
    delcomment:(body)=>post("/api/comment-delete",body),
    setcomment:(body)=>post("/api/comment-update",body),
    register:(body)=>post("/api/register",body),
    login:(body)=>post("/api/login",body),
    getuserinfo:(body)=>get("/api/getuserinfo",body),
    uploadimg:(body)=>post("/api/uploadimg",body),  // 上传文件 
    
    changepass:(body)=>post("/api/changepass",body),  
    adduser:(body)=>post("/api/adduser",body), 
    getuserlist:(body)=>post("/api/getuserlist",body), 
    deloneuser:(body)=>post("/api/deloneuser",body), 
    updateoneuser:(body)=>post("/api/updateoneuser",body), 

    uploadfile:(body)=>post("/api/uploadfile",body), 

    annoaddone:(body)=>post("/api/annoaddone",body), 
    getannolist:(body)=>post("/api/getannolist",body), 
    

     



    





}